package com.hansheng.ssdxs.base.helper;

import android.app.Application;
import android.content.Context;

import com.hansheng.ssdxs.utils.JWebSocketClient;

/**
 * ---------------------------------------------------------------
 * 作者：HanSheng
 * 邮箱：164897033@qq.com
 * 文件描述：全局的websocket
 * ---------------------------------------------------------------
 */
public class SocketHelper {
    private static SocketHelper mInstance;

    private JWebSocketClient client;

    public JWebSocketClient client() {
        return client;
    }

    public static SocketHelper getInstance() {
        if (mInstance == null) {
            mInstance = new SocketHelper();
        }
        return mInstance;
    }

    public void init(JWebSocketClient client) {
        this.client = client;
    }
}
